"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
    return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (g && (g = 0, op[0] && (_ = 0)), _) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
var vue_1 = require("vue");
var element_plus_1 = require("element-plus");
var vue_router_1 = require("vue-router");
// 路由实例
var router = (0, vue_router_1.useRouter)();
// 验证品牌名称是否重复（必须在formRules前定义）
var checkNameDuplicate = function (rule, value, callback) {
    if (!value)
        return callback();
    var isDuplicate = brandList.value.some(function (item) {
        return item.name.trim().toLowerCase() === value.trim().toLowerCase() && item.id !== form.id;
    });
    if (isDuplicate) {
        callback(new Error('该品牌名称已存在'));
    }
    else {
        callback();
    }
};
// 状态管理
var brandList = (0, vue_1.ref)([]); // 原始数据
var filteredBrandList = (0, vue_1.ref)([]); // 筛选后的数据
var searchKeyword = (0, vue_1.ref)('');
var tableLoading = (0, vue_1.ref)(false);
var submitLoading = (0, vue_1.ref)(false);
// 表单数据
var form = (0, vue_1.reactive)({
    id: '',
    name: '',
    manager: '',
    company: '21世纪企业',
    contact: '',
    mentor: '',
    isOpen: false,
    designatedStore: '',
    discountLevel: '',
    singleDiscount: '',
    setDiscount: '',
    intro: '',
    logo: '',
    logoName: '',
    inventory: 0
});
// 表单验证规则
var formRules = {
    name: [
        { required: true, message: '请输入品牌名称', trigger: 'blur' },
        { min: 2, max: 20, message: '品牌名称长度在 2 到 20 个字符', trigger: 'blur' },
        { validator: checkNameDuplicate, trigger: 'blur' }
    ],
    manager: [
        { required: true, message: '请输入品牌经理', trigger: 'blur' }
    ],
    company: [
        { required: true, message: '请输入所属公司', trigger: 'blur' }
    ],
    contact: [
        { required: true, message: '请输入手机号码', trigger: 'blur' },
        { pattern: /^1[3-9]\d{9}$/, message: '请输入正确的手机号', trigger: 'blur' }
    ],
    mentor: [
        { required: true, message: '请选择品牌导师', trigger: 'change' }
    ],
    designatedStore: [
        { required: true, message: '请选择指定门店', trigger: 'change' }
    ],
    discountLevel: [
        { required: true, message: '请选择折扣档位', trigger: 'change' }
    ],
    singleDiscount: [
        { required: true, message: '请输入单品折扣', trigger: 'blur' }
    ],
    setDiscount: [
        { required: true, message: '请输入套盒折扣', trigger: 'blur' }
    ],
    inventory: [
        { required: true, message: '请输入库存数据', trigger: 'blur' },
        { type: 'number', min: 0, message: '库存不能为负数', trigger: 'blur' }
    ]
};
// 对话框控制
var dialogVisible = (0, vue_1.ref)(false);
var isEdit = (0, vue_1.ref)(false);
var formRef = (0, vue_1.ref)(null);
// 分页参数
var currentPage = (0, vue_1.ref)(1);
var pageSize = (0, vue_1.ref)(10);
var jumpPage = (0, vue_1.ref)('');
var totalPages = (0, vue_1.computed)(function () {
    return Math.ceil(filteredBrandList.value.length / pageSize.value) || 1;
});
// 下拉选项数据
var mentorOptions = (0, vue_1.ref)([
    { label: '请选择导师', value: '' },
    { label: '李燕平', value: '李燕平' },
    { label: '张晓明', value: '张晓明' },
    { label: '王建国', value: '王建国' },
    { label: '刘静', value: '刘静' }
]);
var storeOptions = (0, vue_1.ref)([
    { label: '请选择指定门店', value: '' },
    { label: '门店A', value: '门店A' },
    { label: '门店B', value: '门店B' },
    { label: '门店C', value: '门店C' },
    { label: '门店D', value: '门店D' }
]);
var discountLevelOptions = (0, vue_1.ref)([
    { label: '请选择折扣档次', value: '' },
    { label: 'A档', value: 'A档' },
    { label: 'B档', value: 'B档' },
    { label: 'C档', value: 'C档' }
]);
// 初始化数据
var initData = function () { return __awaiter(void 0, void 0, void 0, function () {
    var error_1;
    return __generator(this, function (_a) {
        switch (_a.label) {
            case 0:
                _a.trys.push([0, 2, 3, 4]);
                tableLoading.value = true;
                // 模拟API请求延迟
                return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 500); })];
            case 1:
                // 模拟API请求延迟
                _a.sent();
                // 示例数据
                brandList.value = [
                    {
                        id: '1',
                        name: '测试品牌',
                        manager: '李燕平',
                        company: '21世纪企业',
                        contact: '18932839210',
                        mentor: '李燕平',
                        isOpen: false,
                        designatedStore: '门店A',
                        discountLevel: 'A档',
                        singleDiscount: '9折',
                        setDiscount: '8.5折',
                        intro: '这是一个测试品牌的简介内容，用于展示品牌相关信息',
                        logo: 'https://via.placeholder.com/100',
                        logoName: 'logo.png',
                        inventory: 1000
                    },
                    {
                        id: '2',
                        name: '高端品牌',
                        manager: '张晓明',
                        company: '21世纪企业',
                        contact: '13845678901',
                        mentor: '张晓明',
                        isOpen: true,
                        designatedStore: '门店B',
                        discountLevel: 'B档',
                        singleDiscount: '8折',
                        setDiscount: '7.5折',
                        intro: '高端品牌专注于提供高品质产品和服务',
                        logo: 'https://via.placeholder.com/100',
                        logoName: 'high_end_logo.png',
                        inventory: 500
                    }
                ];
                filteredBrandList.value = __spreadArray([], brandList.value, true);
                return [3 /*break*/, 4];
            case 2:
                error_1 = _a.sent();
                element_plus_1.ElMessage.error('数据加载失败');
                console.error(error_1);
                return [3 /*break*/, 4];
            case 3:
                tableLoading.value = false;
                return [7 /*endfinally*/];
            case 4: return [2 /*return*/];
        }
    });
}); };
// 搜索处理
var handleSearch = function () {
    var keyword = searchKeyword.value.trim().toLowerCase();
    if (!keyword) {
        filteredBrandList.value = __spreadArray([], brandList.value, true);
    }
    else {
        filteredBrandList.value = brandList.value.filter(function (item) {
            return item.name.toLowerCase().includes(keyword) ||
                item.manager.toLowerCase().includes(keyword) ||
                item.mentor.toLowerCase().includes(keyword);
        });
    }
    // 重置页码
    currentPage.value = 1;
    jumpPage.value = 1;
};
// 打开新增对话框
var openAddDialog = function () {
    isEdit.value = false;
    // 重置表单
    Object.assign(form, {
        id: '',
        name: '',
        manager: '',
        company: '21世纪企业',
        contact: '',
        mentor: '',
        isOpen: false,
        designatedStore: '',
        discountLevel: '',
        singleDiscount: '',
        setDiscount: '',
        intro: '',
        logo: '',
        logoName: '',
        inventory: 0
    });
    (0, vue_1.nextTick)(function () {
        if (formRef.value) {
            formRef.value.resetFields();
        }
    });
    dialogVisible.value = true;
};
// 打开编辑对话框
var openEditDialog = function (row) {
    isEdit.value = true;
    // 深拷贝数据
    Object.assign(form, JSON.parse(JSON.stringify(row)));
    (0, vue_1.nextTick)(function () {
        if (formRef.value) {
            formRef.value.clearValidate();
        }
    });
    dialogVisible.value = true;
};
// 提交表单（新增/编辑）
var submitForm = function () { return __awaiter(void 0, void 0, void 0, function () {
    var index, newBrand, error_2;
    return __generator(this, function (_a) {
        switch (_a.label) {
            case 0:
                _a.trys.push([0, 3, 4, 5]);
                // 表单验证
                return [4 /*yield*/, formRef.value.validate()];
            case 1:
                // 表单验证
                _a.sent();
                submitLoading.value = true;
                // 模拟API请求
                return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 500); })];
            case 2:
                // 模拟API请求
                _a.sent();
                if (isEdit.value) {
                    index = brandList.value.findIndex(function (item) { return item.id === form.id; });
                    if (index !== -1) {
                        brandList.value.splice(index, 1, __assign({}, form));
                        element_plus_1.ElMessage.success('品牌编辑成功');
                    }
                }
                else {
                    newBrand = __assign(__assign({}, form), { id: Date.now().toString() });
                    brandList.value.unshift(newBrand); // 添加到列表头部
                    element_plus_1.ElMessage.success('品牌新增成功');
                }
                // 刷新列表
                handleSearch();
                dialogVisible.value = false;
                return [3 /*break*/, 5];
            case 3:
                error_2 = _a.sent();
                if (error_2.name !== 'ValidationError') {
                    element_plus_1.ElMessage.error('操作失败，请重试');
                    console.error(error_2);
                }
                return [3 /*break*/, 5];
            case 4:
                submitLoading.value = false;
                return [7 /*endfinally*/];
            case 5: return [2 /*return*/];
        }
    });
}); };
// 处理联系方式输入（过滤非数字）
var handleContactInput = function (value) {
    form.contact = value.replace(/[^\d]/g, '');
};
// 对话框关闭时清除验证
var handleDialogClose = function () {
    if (formRef.value) {
        formRef.value.clearValidate();
    }
};
// 品牌权限状态变更
var handleOpenChange = function (row) { return __awaiter(void 0, void 0, void 0, function () {
    var originalState, error_3;
    return __generator(this, function (_a) {
        switch (_a.label) {
            case 0:
                _a.trys.push([0, 2, , 3]);
                originalState = row.isOpen;
                // 模拟API请求
                return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 300); })];
            case 1:
                // 模拟API请求
                _a.sent();
                element_plus_1.ElMessage.success("\u54C1\u724C".concat(row.isOpen ? '已开放' : '已关闭'));
                return [3 /*break*/, 3];
            case 2:
                error_3 = _a.sent();
                // 失败时回滚状态
                row.isOpen = !row.isOpen;
                element_plus_1.ElMessage.error('状态更新失败');
                console.error(error_3);
                return [3 /*break*/, 3];
            case 3: return [2 /*return*/];
        }
    });
}); };
// 删除品牌
var handleDelete = function (row) { return __awaiter(void 0, void 0, void 0, function () {
    var index, error_4;
    return __generator(this, function (_a) {
        switch (_a.label) {
            case 0:
                _a.trys.push([0, 3, , 4]);
                return [4 /*yield*/, element_plus_1.ElMessageBox.confirm("\u786E\u5B9A\u8981\u5220\u9664\u54C1\u724C\"".concat(row.name, "\"\u5417\uFF1F\u5220\u9664\u540E\u6570\u636E\u4E0D\u53EF\u6062\u590D"), '删除确认', {
                        confirmButtonText: '确定',
                        cancelButtonText: '取消',
                        type: 'warning'
                    })];
            case 1:
                _a.sent();
                // 模拟API请求
                return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 500); })];
            case 2:
                // 模拟API请求
                _a.sent();
                index = brandList.value.findIndex(function (item) { return item.id === row.id; });
                if (index !== -1) {
                    brandList.value.splice(index, 1);
                    handleSearch(); // 刷新列表
                    element_plus_1.ElMessage.success('品牌删除成功');
                }
                return [3 /*break*/, 4];
            case 3:
                error_4 = _a.sent();
                if (error_4 !== 'cancel') {
                    element_plus_1.ElMessage.error('删除失败');
                    console.error(error_4);
                }
                return [3 /*break*/, 4];
            case 4: return [2 /*return*/];
        }
    });
}); };
// 查看库存
var viewInventory = function (row) {
    element_plus_1.ElMessage.info("\u67E5\u770B".concat(row.name, "\u7684\u5E93\u5B58\u8BE6\u60C5: ").concat(row.inventory, "\u4EF6"));
    // 实际项目中可跳转到库存详情页
    // router.push(`/inventory/detail?brandId=${row.id}`);
};
// 处理LOGO上传
var handleLogoUpload = function (file) {
    // 实际项目中这里应该上传到服务器并获取URL
    form.logo = URL.createObjectURL(file.raw); // 临时URL用于预览
    form.logoName = file.name;
};
// 分页方法
var handleCurrentChange = function (val) {
    currentPage.value = val;
    jumpPage.value = val;
};
var handleSizeChange = function (val) {
    pageSize.value = val;
    currentPage.value = 1;
    jumpPage.value = 1;
};
// 页码跳转
var handleJump = function () {
    if (!jumpPage.value)
        return;
    var page = Number(jumpPage.value);
    if (isNaN(page) || page < 1) {
        page = 1;
    }
    else if (page > totalPages.value) {
        page = totalPages.value;
    }
    currentPage.value = page;
    jumpPage.value = page;
};
// 返回操作
var handleReturn = function () {
    router.back();
};
// 监听搜索关键词变化
(0, vue_1.watch)(searchKeyword, function (newVal) {
    if (!newVal.trim()) {
        handleSearch();
    }
});
// 监听总页数变化，修正页码
(0, vue_1.watch)(totalPages, function (newVal) {
    if (currentPage.value > newVal && newVal > 0) {
        currentPage.value = newVal;
        jumpPage.value = newVal;
    }
});
// 初始化
(0, vue_1.onMounted)(function () {
    initData();
    jumpPage.value = currentPage.value;
});
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
var __VLS_ctx = __assign(__assign({}, {}), {});
var __VLS_elements;
var __VLS_components;
var __VLS_directives;
/** @type {__VLS_StyleScopedClasses['add-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['search-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['jump-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['inventory-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['edit-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['delete-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['action-area']} */ ;
/** @type {__VLS_StyleScopedClasses['pagination-area']} */ ;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "brand-management-page" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "page-header" }));
__VLS_asFunctionalElement(__VLS_elements.h2, __VLS_elements.h2)(__assign({ class: "page-title" }));
var __VLS_0 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0(__assign(__assign({ 'onClick': {} }, { type: "text" }), { class: "return-btn" })));
var __VLS_2 = __VLS_1.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "text" }), { class: "return-btn" })], __VLS_functionalComponentArgsRest(__VLS_1), false));
var __VLS_4;
var __VLS_5;
var __VLS_6 = ({ click: {} },
    { onClick: (__VLS_ctx.handleReturn) });
var __VLS_7 = __VLS_3.slots.default;
// @ts-ignore
[handleReturn,];
var __VLS_3;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "action-area" }));
var __VLS_8 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_9 = __VLS_asFunctionalComponent(__VLS_8, new __VLS_8(__assign(__assign({ 'onClick': {} }, { type: "primary" }), { class: "add-btn" })));
var __VLS_10 = __VLS_9.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "primary" }), { class: "add-btn" })], __VLS_functionalComponentArgsRest(__VLS_9), false));
var __VLS_12;
var __VLS_13;
var __VLS_14 = ({ click: {} },
    { onClick: (__VLS_ctx.openAddDialog) });
var __VLS_15 = __VLS_11.slots.default;
// @ts-ignore
[openAddDialog,];
var __VLS_11;
var __VLS_16 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_17 = __VLS_asFunctionalComponent(__VLS_16, new __VLS_16(__assign(__assign({ 'onKeyup': {} }, { modelValue: (__VLS_ctx.searchKeyword), placeholder: "搜索品牌名称/经理..." }), { style: {} })));
var __VLS_18 = __VLS_17.apply(void 0, __spreadArray([__assign(__assign({ 'onKeyup': {} }, { modelValue: (__VLS_ctx.searchKeyword), placeholder: "搜索品牌名称/经理..." }), { style: {} })], __VLS_functionalComponentArgsRest(__VLS_17), false));
var __VLS_20;
var __VLS_21;
var __VLS_22 = ({ keyup: {} },
    { onKeyup: (__VLS_ctx.handleSearch) });
// @ts-ignore
[searchKeyword, handleSearch,];
var __VLS_19;
var __VLS_24 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_25 = __VLS_asFunctionalComponent(__VLS_24, new __VLS_24(__assign(__assign({ 'onClick': {} }, { type: "primary" }), { class: "search-btn" })));
var __VLS_26 = __VLS_25.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "primary" }), { class: "search-btn" })], __VLS_functionalComponentArgsRest(__VLS_25), false));
var __VLS_28;
var __VLS_29;
var __VLS_30 = ({ click: {} },
    { onClick: (__VLS_ctx.handleSearch) });
var __VLS_31 = __VLS_27.slots.default;
// @ts-ignore
[handleSearch,];
var __VLS_27;
var __VLS_32 = {}.ElTable;
/** @type {[typeof __VLS_components.ElTable, typeof __VLS_components.elTable, typeof __VLS_components.ElTable, typeof __VLS_components.elTable, ]} */ ;
// @ts-ignore
ElTable;
// @ts-ignore
var __VLS_33 = __VLS_asFunctionalComponent(__VLS_32, new __VLS_32(__assign(__assign({ data: (__VLS_ctx.filteredBrandList), border: true }, { style: {} }), { rowKey: (function (row) { return row.id; }) })));
var __VLS_34 = __VLS_33.apply(void 0, __spreadArray([__assign(__assign({ data: (__VLS_ctx.filteredBrandList), border: true }, { style: {} }), { rowKey: (function (row) { return row.id; }) })], __VLS_functionalComponentArgsRest(__VLS_33), false));
__VLS_asFunctionalDirective(__VLS_directives.vLoading)(null, __assign(__assign({}, __VLS_directiveBindingRestFields), { value: (__VLS_ctx.tableLoading) }), null, null);
var __VLS_36 = __VLS_35.slots.default;
// @ts-ignore
[filteredBrandList, vLoading, tableLoading,];
var __VLS_37 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_38 = __VLS_asFunctionalComponent(__VLS_37, new __VLS_37({
    label: "品牌LOGO",
    width: "80",
}));
var __VLS_39 = __VLS_38.apply(void 0, __spreadArray([{
        label: "品牌LOGO",
        width: "80",
    }], __VLS_functionalComponentArgsRest(__VLS_38), false));
var __VLS_41 = __VLS_40.slots.default;
{
    var __VLS_42 = __VLS_40.slots.default;
    var scope = __VLS_getSlotParameters(__VLS_42)[0];
    var __VLS_43 = {}.ElAvatar;
    /** @type {[typeof __VLS_components.ElAvatar, typeof __VLS_components.elAvatar, ]} */ ;
    // @ts-ignore
    element_plus_1.ElAvatar;
    // @ts-ignore
    var __VLS_44 = __VLS_asFunctionalComponent(__VLS_43, new __VLS_43(__assign({ src: (scope.row.logo) }, { class: "brand-logo" })));
    var __VLS_45 = __VLS_44.apply(void 0, __spreadArray([__assign({ src: (scope.row.logo) }, { class: "brand-logo" })], __VLS_functionalComponentArgsRest(__VLS_44), false));
}
var __VLS_40;
var __VLS_48 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_49 = __VLS_asFunctionalComponent(__VLS_48, new __VLS_48({
    prop: "name",
    label: "品牌名称",
    sortable: true,
}));
var __VLS_50 = __VLS_49.apply(void 0, __spreadArray([{
        prop: "name",
        label: "品牌名称",
        sortable: true,
    }], __VLS_functionalComponentArgsRest(__VLS_49), false));
var __VLS_53 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_54 = __VLS_asFunctionalComponent(__VLS_53, new __VLS_53({
    prop: "manager",
    label: "品牌经理",
    sortable: true,
}));
var __VLS_55 = __VLS_54.apply(void 0, __spreadArray([{
        prop: "manager",
        label: "品牌经理",
        sortable: true,
    }], __VLS_functionalComponentArgsRest(__VLS_54), false));
var __VLS_58 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_59 = __VLS_asFunctionalComponent(__VLS_58, new __VLS_58({
    prop: "company",
    label: "所属公司",
}));
var __VLS_60 = __VLS_59.apply(void 0, __spreadArray([{
        prop: "company",
        label: "所属公司",
    }], __VLS_functionalComponentArgsRest(__VLS_59), false));
var __VLS_63 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_64 = __VLS_asFunctionalComponent(__VLS_63, new __VLS_63({
    prop: "contact",
    label: "联系方式",
}));
var __VLS_65 = __VLS_64.apply(void 0, __spreadArray([{
        prop: "contact",
        label: "联系方式",
    }], __VLS_functionalComponentArgsRest(__VLS_64), false));
var __VLS_68 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_69 = __VLS_asFunctionalComponent(__VLS_68, new __VLS_68({
    prop: "mentor",
    label: "品牌导师",
    sortable: true,
}));
var __VLS_70 = __VLS_69.apply(void 0, __spreadArray([{
        prop: "mentor",
        label: "品牌导师",
        sortable: true,
    }], __VLS_functionalComponentArgsRest(__VLS_69), false));
var __VLS_72 = __VLS_71.slots.default;
{
    var __VLS_73 = __VLS_71.slots.default;
    var scope = __VLS_getSlotParameters(__VLS_73)[0];
    var __VLS_74 = {}.ElSelect;
    /** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
    // @ts-ignore
    ElSelect;
    // @ts-ignore
    var __VLS_75 = __VLS_asFunctionalComponent(__VLS_74, new __VLS_74({
        modelValue: (scope.row.mentor),
        disabled: true,
    }));
    var __VLS_76 = __VLS_75.apply(void 0, __spreadArray([{
            modelValue: (scope.row.mentor),
            disabled: true,
        }], __VLS_functionalComponentArgsRest(__VLS_75), false));
    var __VLS_78 = __VLS_77.slots.default;
    for (var _i = 0, _a = __VLS_getVForSourceType((__VLS_ctx.mentorOptions)); _i < _a.length; _i++) {
        var item = _a[_i][0];
        // @ts-ignore
        [mentorOptions,];
        var __VLS_79 = {}.ElOption;
        /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
        // @ts-ignore
        ElOption;
        // @ts-ignore
        var __VLS_80 = __VLS_asFunctionalComponent(__VLS_79, new __VLS_79({
            key: (item.value),
            label: (item.label),
            value: (item.value),
        }));
        var __VLS_81 = __VLS_80.apply(void 0, __spreadArray([{
                key: (item.value),
                label: (item.label),
                value: (item.value),
            }], __VLS_functionalComponentArgsRest(__VLS_80), false));
    }
    var __VLS_77;
}
var __VLS_71;
var __VLS_84 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_85 = __VLS_asFunctionalComponent(__VLS_84, new __VLS_84({
    label: "品牌权限",
    width: "120",
}));
var __VLS_86 = __VLS_85.apply(void 0, __spreadArray([{
        label: "品牌权限",
        width: "120",
    }], __VLS_functionalComponentArgsRest(__VLS_85), false));
var __VLS_88 = __VLS_87.slots.default;
{
    var __VLS_89 = __VLS_87.slots.default;
    var scope_1 = __VLS_getSlotParameters(__VLS_89)[0];
    var __VLS_90 = {}.ElSwitch;
    /** @type {[typeof __VLS_components.ElSwitch, typeof __VLS_components.elSwitch, ]} */ ;
    // @ts-ignore
    ElSwitch;
    // @ts-ignore
    var __VLS_91 = __VLS_asFunctionalComponent(__VLS_90, new __VLS_90(__assign({ 'onChange': {} }, { modelValue: (scope_1.row.isOpen), activeValue: (true), inactiveValue: (false), activeText: "开放", inactiveText: "关闭", activeColor: "#00b4b4", disabled: (!scope_1.row.id) })));
    var __VLS_92 = __VLS_91.apply(void 0, __spreadArray([__assign({ 'onChange': {} }, { modelValue: (scope_1.row.isOpen), activeValue: (true), inactiveValue: (false), activeText: "开放", inactiveText: "关闭", activeColor: "#00b4b4", disabled: (!scope_1.row.id) })], __VLS_functionalComponentArgsRest(__VLS_91), false));
    var __VLS_94 = void 0;
    var __VLS_95 = void 0;
    var __VLS_96 = ({ change: {} },
        { onChange: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.handleOpenChange(scope_1.row);
                // @ts-ignore
                [handleOpenChange,];
            } });
    var __VLS_93;
}
var __VLS_87;
var __VLS_98 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_99 = __VLS_asFunctionalComponent(__VLS_98, new __VLS_98({
    prop: "designatedStore",
    label: "指定开放",
}));
var __VLS_100 = __VLS_99.apply(void 0, __spreadArray([{
        prop: "designatedStore",
        label: "指定开放",
    }], __VLS_functionalComponentArgsRest(__VLS_99), false));
var __VLS_103 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_104 = __VLS_asFunctionalComponent(__VLS_103, new __VLS_103({
    prop: "discountLevel",
    label: "折扣档位",
}));
var __VLS_105 = __VLS_104.apply(void 0, __spreadArray([{
        prop: "discountLevel",
        label: "折扣档位",
    }], __VLS_functionalComponentArgsRest(__VLS_104), false));
var __VLS_107 = __VLS_106.slots.default;
{
    var __VLS_108 = __VLS_106.slots.default;
    var scope = __VLS_getSlotParameters(__VLS_108)[0];
    var __VLS_109 = {}.ElSelect;
    /** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
    // @ts-ignore
    ElSelect;
    // @ts-ignore
    var __VLS_110 = __VLS_asFunctionalComponent(__VLS_109, new __VLS_109({
        modelValue: (scope.row.discountLevel),
        disabled: true,
    }));
    var __VLS_111 = __VLS_110.apply(void 0, __spreadArray([{
            modelValue: (scope.row.discountLevel),
            disabled: true,
        }], __VLS_functionalComponentArgsRest(__VLS_110), false));
    var __VLS_113 = __VLS_112.slots.default;
    for (var _b = 0, _c = __VLS_getVForSourceType((__VLS_ctx.discountLevelOptions)); _b < _c.length; _b++) {
        var item = _c[_b][0];
        // @ts-ignore
        [discountLevelOptions,];
        var __VLS_114 = {}.ElOption;
        /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
        // @ts-ignore
        ElOption;
        // @ts-ignore
        var __VLS_115 = __VLS_asFunctionalComponent(__VLS_114, new __VLS_114({
            key: (item.value),
            label: (item.label),
            value: (item.value),
        }));
        var __VLS_116 = __VLS_115.apply(void 0, __spreadArray([{
                key: (item.value),
                label: (item.label),
                value: (item.value),
            }], __VLS_functionalComponentArgsRest(__VLS_115), false));
    }
    var __VLS_112;
}
var __VLS_106;
var __VLS_119 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_120 = __VLS_asFunctionalComponent(__VLS_119, new __VLS_119({
    prop: "singleDiscount",
    label: "单品折扣",
}));
var __VLS_121 = __VLS_120.apply(void 0, __spreadArray([{
        prop: "singleDiscount",
        label: "单品折扣",
    }], __VLS_functionalComponentArgsRest(__VLS_120), false));
var __VLS_124 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_125 = __VLS_asFunctionalComponent(__VLS_124, new __VLS_124({
    prop: "setDiscount",
    label: "套盒折扣",
}));
var __VLS_126 = __VLS_125.apply(void 0, __spreadArray([{
        prop: "setDiscount",
        label: "套盒折扣",
    }], __VLS_functionalComponentArgsRest(__VLS_125), false));
var __VLS_129 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_130 = __VLS_asFunctionalComponent(__VLS_129, new __VLS_129({
    prop: "intro",
    label: "品牌简介",
    width: "200",
}));
var __VLS_131 = __VLS_130.apply(void 0, __spreadArray([{
        prop: "intro",
        label: "品牌简介",
        width: "200",
    }], __VLS_functionalComponentArgsRest(__VLS_130), false));
var __VLS_133 = __VLS_132.slots.default;
{
    var __VLS_134 = __VLS_132.slots.default;
    var scope = __VLS_getSlotParameters(__VLS_134)[0];
    __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "intro-text" }));
    (scope.row.intro);
}
var __VLS_132;
var __VLS_135 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_136 = __VLS_asFunctionalComponent(__VLS_135, new __VLS_135({
    label: "库存数据",
    width: "100",
}));
var __VLS_137 = __VLS_136.apply(void 0, __spreadArray([{
        label: "库存数据",
        width: "100",
    }], __VLS_functionalComponentArgsRest(__VLS_136), false));
var __VLS_139 = __VLS_138.slots.default;
{
    var __VLS_140 = __VLS_138.slots.default;
    var scope_2 = __VLS_getSlotParameters(__VLS_140)[0];
    var __VLS_141 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_142 = __VLS_asFunctionalComponent(__VLS_141, new __VLS_141(__assign(__assign({ 'onClick': {} }, { type: "primary" }), { class: "inventory-btn" })));
    var __VLS_143 = __VLS_142.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "primary" }), { class: "inventory-btn" })], __VLS_functionalComponentArgsRest(__VLS_142), false));
    var __VLS_145 = void 0;
    var __VLS_146 = void 0;
    var __VLS_147 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.viewInventory(scope_2.row);
                // @ts-ignore
                [viewInventory,];
            } });
    var __VLS_148 = __VLS_144.slots.default;
    (scope_2.row.inventory);
    var __VLS_144;
}
var __VLS_138;
var __VLS_149 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_150 = __VLS_asFunctionalComponent(__VLS_149, new __VLS_149({
    label: "操作",
    width: "260",
}));
var __VLS_151 = __VLS_150.apply(void 0, __spreadArray([{
        label: "操作",
        width: "260",
    }], __VLS_functionalComponentArgsRest(__VLS_150), false));
var __VLS_153 = __VLS_152.slots.default;
{
    var __VLS_154 = __VLS_152.slots.default;
    var scope_3 = __VLS_getSlotParameters(__VLS_154)[0];
    var __VLS_155 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_156 = __VLS_asFunctionalComponent(__VLS_155, new __VLS_155(__assign(__assign({ 'onClick': {} }, { type: "warning" }), { class: "edit-btn" })));
    var __VLS_157 = __VLS_156.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "warning" }), { class: "edit-btn" })], __VLS_functionalComponentArgsRest(__VLS_156), false));
    var __VLS_159 = void 0;
    var __VLS_160 = void 0;
    var __VLS_161 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.openEditDialog(scope_3.row);
                // @ts-ignore
                [openEditDialog,];
            } });
    var __VLS_162 = __VLS_158.slots.default;
    var __VLS_158;
    var __VLS_163 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_164 = __VLS_asFunctionalComponent(__VLS_163, new __VLS_163(__assign(__assign({ 'onClick': {} }, { type: "danger" }), { class: "delete-btn" })));
    var __VLS_165 = __VLS_164.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "danger" }), { class: "delete-btn" })], __VLS_functionalComponentArgsRest(__VLS_164), false));
    var __VLS_167 = void 0;
    var __VLS_168 = void 0;
    var __VLS_169 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.handleDelete(scope_3.row);
                // @ts-ignore
                [handleDelete,];
            } });
    var __VLS_170 = __VLS_166.slots.default;
    var __VLS_166;
}
var __VLS_152;
var __VLS_35;
if (__VLS_ctx.filteredBrandList.length === 0 && !__VLS_ctx.tableLoading) {
    // @ts-ignore
    [filteredBrandList, tableLoading,];
    __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "empty-state" }));
    var __VLS_171 = {}.ElEmpty;
    /** @type {[typeof __VLS_components.ElEmpty, typeof __VLS_components.elEmpty, ]} */ ;
    // @ts-ignore
    element_plus_1.ElEmpty;
    // @ts-ignore
    var __VLS_172 = __VLS_asFunctionalComponent(__VLS_171, new __VLS_171({
        description: "暂无品牌数据",
    }));
    var __VLS_173 = __VLS_172.apply(void 0, __spreadArray([{
            description: "暂无品牌数据",
        }], __VLS_functionalComponentArgsRest(__VLS_172), false));
}
if (__VLS_ctx.filteredBrandList.length > 0) {
    // @ts-ignore
    [filteredBrandList,];
    __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "pagination-area" }));
    __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)(__assign({ class: "total-info" }));
    (__VLS_ctx.filteredBrandList.length);
    (__VLS_ctx.totalPages);
    // @ts-ignore
    [filteredBrandList, totalPages,];
    var __VLS_176 = {}.ElPagination;
    /** @type {[typeof __VLS_components.ElPagination, typeof __VLS_components.elPagination, ]} */ ;
    // @ts-ignore
    ElPagination;
    // @ts-ignore
    var __VLS_177 = __VLS_asFunctionalComponent(__VLS_176, new __VLS_176(__assign(__assign({ 'onCurrentChange': {} }, { 'onSizeChange': {} }), { currentPage: (__VLS_ctx.currentPage), pageSizes: ([10, 20, 30]), pageSize: (__VLS_ctx.pageSize), layout: "prev, pager, next", total: (__VLS_ctx.filteredBrandList.length) })));
    var __VLS_178 = __VLS_177.apply(void 0, __spreadArray([__assign(__assign({ 'onCurrentChange': {} }, { 'onSizeChange': {} }), { currentPage: (__VLS_ctx.currentPage), pageSizes: ([10, 20, 30]), pageSize: (__VLS_ctx.pageSize), layout: "prev, pager, next", total: (__VLS_ctx.filteredBrandList.length) })], __VLS_functionalComponentArgsRest(__VLS_177), false));
    var __VLS_180 = void 0;
    var __VLS_181 = void 0;
    var __VLS_182 = ({ currentChange: {} },
        { onCurrentChange: (__VLS_ctx.handleCurrentChange) });
    var __VLS_183 = ({ sizeChange: {} },
        { onSizeChange: (__VLS_ctx.handleSizeChange) });
    // @ts-ignore
    [filteredBrandList, currentPage, pageSize, handleCurrentChange, handleSizeChange,];
    var __VLS_179;
    var __VLS_185 = {}.ElSelect;
    /** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
    // @ts-ignore
    ElSelect;
    // @ts-ignore
    var __VLS_186 = __VLS_asFunctionalComponent(__VLS_185, new __VLS_185(__assign(__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.pageSize), placeholder: "条数/页" }), { style: {} })));
    var __VLS_187 = __VLS_186.apply(void 0, __spreadArray([__assign(__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.pageSize), placeholder: "条数/页" }), { style: {} })], __VLS_functionalComponentArgsRest(__VLS_186), false));
    var __VLS_189 = void 0;
    var __VLS_190 = void 0;
    var __VLS_191 = ({ change: {} },
        { onChange: (__VLS_ctx.handleSizeChange) });
    var __VLS_192 = __VLS_188.slots.default;
    // @ts-ignore
    [pageSize, handleSizeChange,];
    var __VLS_193 = {}.ElOption;
    /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
    // @ts-ignore
    ElOption;
    // @ts-ignore
    var __VLS_194 = __VLS_asFunctionalComponent(__VLS_193, new __VLS_193({
        label: "10条/页",
        value: "10",
    }));
    var __VLS_195 = __VLS_194.apply(void 0, __spreadArray([{
            label: "10条/页",
            value: "10",
        }], __VLS_functionalComponentArgsRest(__VLS_194), false));
    var __VLS_198 = {}.ElOption;
    /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
    // @ts-ignore
    ElOption;
    // @ts-ignore
    var __VLS_199 = __VLS_asFunctionalComponent(__VLS_198, new __VLS_198({
        label: "20条/页",
        value: "20",
    }));
    var __VLS_200 = __VLS_199.apply(void 0, __spreadArray([{
            label: "20条/页",
            value: "20",
        }], __VLS_functionalComponentArgsRest(__VLS_199), false));
    var __VLS_203 = {}.ElOption;
    /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
    // @ts-ignore
    ElOption;
    // @ts-ignore
    var __VLS_204 = __VLS_asFunctionalComponent(__VLS_203, new __VLS_203({
        label: "30条/页",
        value: "30",
    }));
    var __VLS_205 = __VLS_204.apply(void 0, __spreadArray([{
            label: "30条/页",
            value: "30",
        }], __VLS_functionalComponentArgsRest(__VLS_204), false));
    var __VLS_188;
    __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
    var __VLS_208 = {}.ElInput;
    /** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
    // @ts-ignore
    ElInput;
    // @ts-ignore
    var __VLS_209 = __VLS_asFunctionalComponent(__VLS_208, new __VLS_208(__assign(__assign(__assign({ 'onKeyup': {} }, { modelValue: (__VLS_ctx.jumpPage), type: "number" }), { style: {} }), { min: (1), max: (__VLS_ctx.totalPages), disabled: (__VLS_ctx.totalPages < 1) })));
    var __VLS_210 = __VLS_209.apply(void 0, __spreadArray([__assign(__assign(__assign({ 'onKeyup': {} }, { modelValue: (__VLS_ctx.jumpPage), type: "number" }), { style: {} }), { min: (1), max: (__VLS_ctx.totalPages), disabled: (__VLS_ctx.totalPages < 1) })], __VLS_functionalComponentArgsRest(__VLS_209), false));
    var __VLS_212 = void 0;
    var __VLS_213 = void 0;
    var __VLS_214 = ({ keyup: {} },
        { onKeyup: (__VLS_ctx.handleJump) });
    // @ts-ignore
    [totalPages, totalPages, jumpPage, handleJump,];
    var __VLS_211;
    var __VLS_216 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_217 = __VLS_asFunctionalComponent(__VLS_216, new __VLS_216(__assign({ 'onClick': {} }, { type: "primary", disabled: (__VLS_ctx.totalPages < 1) })));
    var __VLS_218 = __VLS_217.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary", disabled: (__VLS_ctx.totalPages < 1) })], __VLS_functionalComponentArgsRest(__VLS_217), false));
    var __VLS_220 = void 0;
    var __VLS_221 = void 0;
    var __VLS_222 = ({ click: {} },
        { onClick: (__VLS_ctx.handleJump) });
    var __VLS_223 = __VLS_219.slots.default;
    // @ts-ignore
    [totalPages, handleJump,];
    var __VLS_219;
}
var __VLS_224 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_225 = __VLS_asFunctionalComponent(__VLS_224, new __VLS_224(__assign({ 'onClose': {} }, { modelValue: (__VLS_ctx.dialogVisible), title: (__VLS_ctx.isEdit ? '编辑品牌' : '新增品牌'), width: "800px", closeOnClickModal: (false) })));
var __VLS_226 = __VLS_225.apply(void 0, __spreadArray([__assign({ 'onClose': {} }, { modelValue: (__VLS_ctx.dialogVisible), title: (__VLS_ctx.isEdit ? '编辑品牌' : '新增品牌'), width: "800px", closeOnClickModal: (false) })], __VLS_functionalComponentArgsRest(__VLS_225), false));
var __VLS_228;
var __VLS_229;
var __VLS_230 = ({ close: {} },
    { onClose: (__VLS_ctx.handleDialogClose) });
var __VLS_231 = __VLS_227.slots.default;
// @ts-ignore
[dialogVisible, isEdit, handleDialogClose,];
var __VLS_232 = {}.ElForm;
/** @type {[typeof __VLS_components.ElForm, typeof __VLS_components.elForm, typeof __VLS_components.ElForm, typeof __VLS_components.elForm, ]} */ ;
// @ts-ignore
ElForm;
// @ts-ignore
var __VLS_233 = __VLS_asFunctionalComponent(__VLS_232, new __VLS_232({
    ref: "formRef",
    model: (__VLS_ctx.form),
    labelWidth: "120px",
    rules: (__VLS_ctx.formRules),
}));
var __VLS_234 = __VLS_233.apply(void 0, __spreadArray([{
        ref: "formRef",
        model: (__VLS_ctx.form),
        labelWidth: "120px",
        rules: (__VLS_ctx.formRules),
    }], __VLS_functionalComponentArgsRest(__VLS_233), false));
/** @type {typeof __VLS_ctx.formRef} */ ;
var __VLS_236 = {};
var __VLS_238 = __VLS_235.slots.default;
// @ts-ignore
[form, formRules, formRef,];
var __VLS_239 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_240 = __VLS_asFunctionalComponent(__VLS_239, new __VLS_239({
    label: "品牌名称",
    prop: "name",
}));
var __VLS_241 = __VLS_240.apply(void 0, __spreadArray([{
        label: "品牌名称",
        prop: "name",
    }], __VLS_functionalComponentArgsRest(__VLS_240), false));
var __VLS_243 = __VLS_242.slots.default;
var __VLS_244 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_245 = __VLS_asFunctionalComponent(__VLS_244, new __VLS_244({
    modelValue: (__VLS_ctx.form.name),
    placeholder: "请输入品牌名称",
}));
var __VLS_246 = __VLS_245.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.form.name),
        placeholder: "请输入品牌名称",
    }], __VLS_functionalComponentArgsRest(__VLS_245), false));
// @ts-ignore
[form,];
var __VLS_242;
var __VLS_249 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_250 = __VLS_asFunctionalComponent(__VLS_249, new __VLS_249({
    label: "品牌经理",
    prop: "manager",
}));
var __VLS_251 = __VLS_250.apply(void 0, __spreadArray([{
        label: "品牌经理",
        prop: "manager",
    }], __VLS_functionalComponentArgsRest(__VLS_250), false));
var __VLS_253 = __VLS_252.slots.default;
var __VLS_254 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_255 = __VLS_asFunctionalComponent(__VLS_254, new __VLS_254({
    modelValue: (__VLS_ctx.form.manager),
    placeholder: "请输入品牌经理",
}));
var __VLS_256 = __VLS_255.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.form.manager),
        placeholder: "请输入品牌经理",
    }], __VLS_functionalComponentArgsRest(__VLS_255), false));
// @ts-ignore
[form,];
var __VLS_252;
var __VLS_259 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_260 = __VLS_asFunctionalComponent(__VLS_259, new __VLS_259({
    label: "所属公司",
    prop: "company",
}));
var __VLS_261 = __VLS_260.apply(void 0, __spreadArray([{
        label: "所属公司",
        prop: "company",
    }], __VLS_functionalComponentArgsRest(__VLS_260), false));
var __VLS_263 = __VLS_262.slots.default;
var __VLS_264 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_265 = __VLS_asFunctionalComponent(__VLS_264, new __VLS_264({
    modelValue: (__VLS_ctx.form.company),
    placeholder: "请输入所属公司",
}));
var __VLS_266 = __VLS_265.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.form.company),
        placeholder: "请输入所属公司",
    }], __VLS_functionalComponentArgsRest(__VLS_265), false));
// @ts-ignore
[form,];
var __VLS_262;
var __VLS_269 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_270 = __VLS_asFunctionalComponent(__VLS_269, new __VLS_269({
    label: "手机号码",
    prop: "contact",
}));
var __VLS_271 = __VLS_270.apply(void 0, __spreadArray([{
        label: "手机号码",
        prop: "contact",
    }], __VLS_functionalComponentArgsRest(__VLS_270), false));
var __VLS_273 = __VLS_272.slots.default;
var __VLS_274 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_275 = __VLS_asFunctionalComponent(__VLS_274, new __VLS_274(__assign({ 'onInput': {} }, { modelValue: (__VLS_ctx.form.contact), placeholder: "请输入手机号码", maxlength: (11) })));
var __VLS_276 = __VLS_275.apply(void 0, __spreadArray([__assign({ 'onInput': {} }, { modelValue: (__VLS_ctx.form.contact), placeholder: "请输入手机号码", maxlength: (11) })], __VLS_functionalComponentArgsRest(__VLS_275), false));
var __VLS_278;
var __VLS_279;
var __VLS_280 = ({ input: {} },
    { onInput: (__VLS_ctx.handleContactInput) });
// @ts-ignore
[form, handleContactInput,];
var __VLS_277;
var __VLS_272;
var __VLS_282 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_283 = __VLS_asFunctionalComponent(__VLS_282, new __VLS_282({
    label: "品牌导师",
    prop: "mentor",
}));
var __VLS_284 = __VLS_283.apply(void 0, __spreadArray([{
        label: "品牌导师",
        prop: "mentor",
    }], __VLS_functionalComponentArgsRest(__VLS_283), false));
var __VLS_286 = __VLS_285.slots.default;
var __VLS_287 = {}.ElSelect;
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
// @ts-ignore
ElSelect;
// @ts-ignore
var __VLS_288 = __VLS_asFunctionalComponent(__VLS_287, new __VLS_287({
    modelValue: (__VLS_ctx.form.mentor),
    placeholder: "请选择品牌导师",
    clearable: true,
}));
var __VLS_289 = __VLS_288.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.form.mentor),
        placeholder: "请选择品牌导师",
        clearable: true,
    }], __VLS_functionalComponentArgsRest(__VLS_288), false));
var __VLS_291 = __VLS_290.slots.default;
// @ts-ignore
[form,];
for (var _d = 0, _e = __VLS_getVForSourceType((__VLS_ctx.mentorOptions)); _d < _e.length; _d++) {
    var item = _e[_d][0];
    // @ts-ignore
    [mentorOptions,];
    var __VLS_292 = {}.ElOption;
    /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
    // @ts-ignore
    ElOption;
    // @ts-ignore
    var __VLS_293 = __VLS_asFunctionalComponent(__VLS_292, new __VLS_292({
        key: (item.value),
        label: (item.label),
        value: (item.value),
    }));
    var __VLS_294 = __VLS_293.apply(void 0, __spreadArray([{
            key: (item.value),
            label: (item.label),
            value: (item.value),
        }], __VLS_functionalComponentArgsRest(__VLS_293), false));
}
var __VLS_290;
var __VLS_285;
var __VLS_297 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_298 = __VLS_asFunctionalComponent(__VLS_297, new __VLS_297({
    label: "品牌权限",
    prop: "isOpen",
}));
var __VLS_299 = __VLS_298.apply(void 0, __spreadArray([{
        label: "品牌权限",
        prop: "isOpen",
    }], __VLS_functionalComponentArgsRest(__VLS_298), false));
var __VLS_301 = __VLS_300.slots.default;
var __VLS_302 = {}.ElSwitch;
/** @type {[typeof __VLS_components.ElSwitch, typeof __VLS_components.elSwitch, ]} */ ;
// @ts-ignore
ElSwitch;
// @ts-ignore
var __VLS_303 = __VLS_asFunctionalComponent(__VLS_302, new __VLS_302({
    modelValue: (__VLS_ctx.form.isOpen),
    activeValue: (true),
    inactiveValue: (false),
    activeText: "开放",
    inactiveText: "关闭",
    activeColor: "#00b4b4",
}));
var __VLS_304 = __VLS_303.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.form.isOpen),
        activeValue: (true),
        inactiveValue: (false),
        activeText: "开放",
        inactiveText: "关闭",
        activeColor: "#00b4b4",
    }], __VLS_functionalComponentArgsRest(__VLS_303), false));
// @ts-ignore
[form,];
var __VLS_300;
var __VLS_307 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_308 = __VLS_asFunctionalComponent(__VLS_307, new __VLS_307({
    label: "指定开放",
    prop: "designatedStore",
}));
var __VLS_309 = __VLS_308.apply(void 0, __spreadArray([{
        label: "指定开放",
        prop: "designatedStore",
    }], __VLS_functionalComponentArgsRest(__VLS_308), false));
var __VLS_311 = __VLS_310.slots.default;
var __VLS_312 = {}.ElSelect;
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
// @ts-ignore
ElSelect;
// @ts-ignore
var __VLS_313 = __VLS_asFunctionalComponent(__VLS_312, new __VLS_312({
    modelValue: (__VLS_ctx.form.designatedStore),
    placeholder: "请选择指定门店",
    clearable: true,
}));
var __VLS_314 = __VLS_313.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.form.designatedStore),
        placeholder: "请选择指定门店",
        clearable: true,
    }], __VLS_functionalComponentArgsRest(__VLS_313), false));
var __VLS_316 = __VLS_315.slots.default;
// @ts-ignore
[form,];
for (var _f = 0, _g = __VLS_getVForSourceType((__VLS_ctx.storeOptions)); _f < _g.length; _f++) {
    var item = _g[_f][0];
    // @ts-ignore
    [storeOptions,];
    var __VLS_317 = {}.ElOption;
    /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
    // @ts-ignore
    ElOption;
    // @ts-ignore
    var __VLS_318 = __VLS_asFunctionalComponent(__VLS_317, new __VLS_317({
        key: (item.value),
        label: (item.label),
        value: (item.value),
    }));
    var __VLS_319 = __VLS_318.apply(void 0, __spreadArray([{
            key: (item.value),
            label: (item.label),
            value: (item.value),
        }], __VLS_functionalComponentArgsRest(__VLS_318), false));
}
var __VLS_315;
var __VLS_310;
var __VLS_322 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_323 = __VLS_asFunctionalComponent(__VLS_322, new __VLS_322({
    label: "折扣档位",
    prop: "discountLevel",
}));
var __VLS_324 = __VLS_323.apply(void 0, __spreadArray([{
        label: "折扣档位",
        prop: "discountLevel",
    }], __VLS_functionalComponentArgsRest(__VLS_323), false));
var __VLS_326 = __VLS_325.slots.default;
var __VLS_327 = {}.ElSelect;
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
// @ts-ignore
ElSelect;
// @ts-ignore
var __VLS_328 = __VLS_asFunctionalComponent(__VLS_327, new __VLS_327({
    modelValue: (__VLS_ctx.form.discountLevel),
    placeholder: "请选择折扣档位",
    clearable: true,
}));
var __VLS_329 = __VLS_328.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.form.discountLevel),
        placeholder: "请选择折扣档位",
        clearable: true,
    }], __VLS_functionalComponentArgsRest(__VLS_328), false));
var __VLS_331 = __VLS_330.slots.default;
// @ts-ignore
[form,];
for (var _h = 0, _j = __VLS_getVForSourceType((__VLS_ctx.discountLevelOptions)); _h < _j.length; _h++) {
    var item = _j[_h][0];
    // @ts-ignore
    [discountLevelOptions,];
    var __VLS_332 = {}.ElOption;
    /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
    // @ts-ignore
    ElOption;
    // @ts-ignore
    var __VLS_333 = __VLS_asFunctionalComponent(__VLS_332, new __VLS_332({
        key: (item.value),
        label: (item.label),
        value: (item.value),
    }));
    var __VLS_334 = __VLS_333.apply(void 0, __spreadArray([{
            key: (item.value),
            label: (item.label),
            value: (item.value),
        }], __VLS_functionalComponentArgsRest(__VLS_333), false));
}
var __VLS_330;
var __VLS_325;
var __VLS_337 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_338 = __VLS_asFunctionalComponent(__VLS_337, new __VLS_337({
    label: "单品折扣",
    prop: "singleDiscount",
}));
var __VLS_339 = __VLS_338.apply(void 0, __spreadArray([{
        label: "单品折扣",
        prop: "singleDiscount",
    }], __VLS_functionalComponentArgsRest(__VLS_338), false));
var __VLS_341 = __VLS_340.slots.default;
var __VLS_342 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_343 = __VLS_asFunctionalComponent(__VLS_342, new __VLS_342({
    modelValue: (__VLS_ctx.form.singleDiscount),
    placeholder: "请输入单品折扣",
}));
var __VLS_344 = __VLS_343.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.form.singleDiscount),
        placeholder: "请输入单品折扣",
    }], __VLS_functionalComponentArgsRest(__VLS_343), false));
// @ts-ignore
[form,];
var __VLS_340;
var __VLS_347 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_348 = __VLS_asFunctionalComponent(__VLS_347, new __VLS_347({
    label: "套盒折扣",
    prop: "setDiscount",
}));
var __VLS_349 = __VLS_348.apply(void 0, __spreadArray([{
        label: "套盒折扣",
        prop: "setDiscount",
    }], __VLS_functionalComponentArgsRest(__VLS_348), false));
var __VLS_351 = __VLS_350.slots.default;
var __VLS_352 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_353 = __VLS_asFunctionalComponent(__VLS_352, new __VLS_352({
    modelValue: (__VLS_ctx.form.setDiscount),
    placeholder: "请输入套盒折扣",
}));
var __VLS_354 = __VLS_353.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.form.setDiscount),
        placeholder: "请输入套盒折扣",
    }], __VLS_functionalComponentArgsRest(__VLS_353), false));
// @ts-ignore
[form,];
var __VLS_350;
var __VLS_357 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_358 = __VLS_asFunctionalComponent(__VLS_357, new __VLS_357({
    label: "品牌简介",
    prop: "intro",
}));
var __VLS_359 = __VLS_358.apply(void 0, __spreadArray([{
        label: "品牌简介",
        prop: "intro",
    }], __VLS_functionalComponentArgsRest(__VLS_358), false));
var __VLS_361 = __VLS_360.slots.default;
var __VLS_362 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_363 = __VLS_asFunctionalComponent(__VLS_362, new __VLS_362({
    modelValue: (__VLS_ctx.form.intro),
    placeholder: "请输入品牌简介",
    type: "textarea",
    rows: (4),
}));
var __VLS_364 = __VLS_363.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.form.intro),
        placeholder: "请输入品牌简介",
        type: "textarea",
        rows: (4),
    }], __VLS_functionalComponentArgsRest(__VLS_363), false));
// @ts-ignore
[form,];
var __VLS_360;
var __VLS_367 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_368 = __VLS_asFunctionalComponent(__VLS_367, new __VLS_367({
    label: "LOGO上传",
    prop: "logo",
}));
var __VLS_369 = __VLS_368.apply(void 0, __spreadArray([{
        label: "LOGO上传",
        prop: "logo",
    }], __VLS_functionalComponentArgsRest(__VLS_368), false));
var __VLS_371 = __VLS_370.slots.default;
var __VLS_372 = {}.ElUpload;
/** @type {[typeof __VLS_components.ElUpload, typeof __VLS_components.elUpload, typeof __VLS_components.ElUpload, typeof __VLS_components.elUpload, ]} */ ;
// @ts-ignore
element_plus_1.ElUpload;
// @ts-ignore
var __VLS_373 = __VLS_asFunctionalComponent(__VLS_372, new __VLS_372(__assign({ class: "upload-demo" }, { action: "#", onChange: (__VLS_ctx.handleLogoUpload), showFileList: (false), accept: "image/*" })));
var __VLS_374 = __VLS_373.apply(void 0, __spreadArray([__assign({ class: "upload-demo" }, { action: "#", onChange: (__VLS_ctx.handleLogoUpload), showFileList: (false), accept: "image/*" })], __VLS_functionalComponentArgsRest(__VLS_373), false));
var __VLS_376 = __VLS_375.slots.default;
// @ts-ignore
[handleLogoUpload,];
var __VLS_377 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_378 = __VLS_asFunctionalComponent(__VLS_377, new __VLS_377({
    type: "primary",
}));
var __VLS_379 = __VLS_378.apply(void 0, __spreadArray([{
        type: "primary",
    }], __VLS_functionalComponentArgsRest(__VLS_378), false));
var __VLS_381 = __VLS_380.slots.default;
var __VLS_380;
if (__VLS_ctx.form.logoName) {
    // @ts-ignore
    [form,];
    __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "upload-info" }));
    (__VLS_ctx.form.logoName);
    // @ts-ignore
    [form,];
}
var __VLS_375;
var __VLS_370;
var __VLS_382 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_383 = __VLS_asFunctionalComponent(__VLS_382, new __VLS_382({
    label: "库存数据",
    prop: "inventory",
}));
var __VLS_384 = __VLS_383.apply(void 0, __spreadArray([{
        label: "库存数据",
        prop: "inventory",
    }], __VLS_functionalComponentArgsRest(__VLS_383), false));
var __VLS_386 = __VLS_385.slots.default;
var __VLS_387 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_388 = __VLS_asFunctionalComponent(__VLS_387, new __VLS_387({
    modelValue: (__VLS_ctx.form.inventory),
    placeholder: "请输入库存数据",
    type: "number",
    min: "0",
}));
var __VLS_389 = __VLS_388.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.form.inventory),
        placeholder: "请输入库存数据",
        type: "number",
        min: "0",
    }], __VLS_functionalComponentArgsRest(__VLS_388), false));
// @ts-ignore
[form,];
var __VLS_385;
var __VLS_235;
{
    var __VLS_392 = __VLS_227.slots.footer;
    __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "dialog-footer" }));
    var __VLS_393 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_394 = __VLS_asFunctionalComponent(__VLS_393, new __VLS_393(__assign({ 'onClick': {} })));
    var __VLS_395 = __VLS_394.apply(void 0, __spreadArray([__assign({ 'onClick': {} })], __VLS_functionalComponentArgsRest(__VLS_394), false));
    var __VLS_397 = void 0;
    var __VLS_398 = void 0;
    var __VLS_399 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.dialogVisible = false;
                // @ts-ignore
                [dialogVisible,];
            } });
    var __VLS_400 = __VLS_396.slots.default;
    var __VLS_396;
    var __VLS_401 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_402 = __VLS_asFunctionalComponent(__VLS_401, new __VLS_401(__assign({ 'onClick': {} }, { type: "primary", loading: (__VLS_ctx.submitLoading) })));
    var __VLS_403 = __VLS_402.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary", loading: (__VLS_ctx.submitLoading) })], __VLS_functionalComponentArgsRest(__VLS_402), false));
    var __VLS_405 = void 0;
    var __VLS_406 = void 0;
    var __VLS_407 = ({ click: {} },
        { onClick: (__VLS_ctx.submitForm) });
    var __VLS_408 = __VLS_404.slots.default;
    // @ts-ignore
    [submitLoading, submitForm,];
    var __VLS_404;
}
var __VLS_227;
/** @type {__VLS_StyleScopedClasses['brand-management-page']} */ ;
/** @type {__VLS_StyleScopedClasses['page-header']} */ ;
/** @type {__VLS_StyleScopedClasses['page-title']} */ ;
/** @type {__VLS_StyleScopedClasses['return-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['action-area']} */ ;
/** @type {__VLS_StyleScopedClasses['add-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['search-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['brand-logo']} */ ;
/** @type {__VLS_StyleScopedClasses['intro-text']} */ ;
/** @type {__VLS_StyleScopedClasses['inventory-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['edit-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['delete-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['empty-state']} */ ;
/** @type {__VLS_StyleScopedClasses['pagination-area']} */ ;
/** @type {__VLS_StyleScopedClasses['total-info']} */ ;
/** @type {__VLS_StyleScopedClasses['upload-demo']} */ ;
/** @type {__VLS_StyleScopedClasses['upload-info']} */ ;
/** @type {__VLS_StyleScopedClasses['dialog-footer']} */ ;
// @ts-ignore
var __VLS_237 = __VLS_236;
var __VLS_export = (await Promise.resolve().then(function () { return require('vue'); })).defineComponent({});
exports.default = {};
